package com.zhuozhou.jdyc.main.main.bean;

import androidx.annotation.DrawableRes;
import androidx.annotation.StringRes;

import java.util.ArrayList;
import java.util.List;

public class MenuItemBean {

    // 成员变量
    private @StringRes
    int strRes;
    private @DrawableRes
    int imgRes;
    private String imageUrl;
    private String imageName;
    private String tag;//用来标记是否是国有企业的账号专属menu
    private Class<?> clx;
    private int requestCode = 0;
    private List<MenuItemBean> menuBeanList;

    // 构造方法
    private MenuItemBean(@DrawableRes int imgRes, @StringRes int strRes, String tag) {
        this.strRes = strRes;
        this.imgRes = imgRes;
        this.tag = tag;
    }

    // 构造方法
    public MenuItemBean(@StringRes int strRes, String tag, Class<?> clx, int requestCode) {
        this.strRes = strRes;
        this.tag = tag;
        this.clx = clx;
        this.requestCode = requestCode;
    }


    // 构造方法
    public MenuItemBean(@DrawableRes int imgRes, @StringRes int strRes, String tag, Class<?> clx, int requestCode) {
        this.strRes = strRes;
        this.imgRes = imgRes;
        this.tag = tag;
        this.clx = clx;
        this.requestCode = requestCode;
    }

    // 构造方法
    public MenuItemBean(String imageUrl, String imageName, String tag, Class<?> clx, int requestCode) {
        this.imageName = imageName;
        this.imageUrl = imageUrl;
        this.tag = tag;
        this.clx = clx;
        this.requestCode = requestCode;
    }


    public Class<?> getClx() {
        return clx;
    }

    public void setClx(Class<?> clx) {
        this.clx = clx;
    }

    public int getRequestCode() {
        return requestCode;
    }

    public void setRequestCode(int requestCode) {
        this.requestCode = requestCode;
    }

    public int getStrRes() {
        return strRes;
    }

    public void setStrRes(int strRes) {
        this.strRes = strRes;
    }

    public int getImgRes() {
        return imgRes;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageName() {
        return imageName;
    }

    public void setImageName(String imageName) {
        this.imageName = imageName;
    }

    public void setImgRes(int imgRes) {
        this.imgRes = imgRes;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public List<MenuItemBean> getMenuBeanList() {
        return menuBeanList == null ? new ArrayList<>() : menuBeanList;
    }

    public void setMenuBeanList(List<MenuItemBean> menuBeanList) {
        this.menuBeanList = menuBeanList;
    }
}
